<DIV align="center">
    <CENTER>
        <TABLE width="30%" border="0" align="center" cellpadding="3" cellspacing="0">
            <TR>
                
                <TD width="100%" align="center"><%
                    String n = (String) session.getAttribute("nickname");
                    if (n != null && n.length() > 0) {
                        out.write("<a class=\"button\" href=\""+request.getContextPath()+"/chat/logout.jsp\">Exit chat</a>");
                        out.write(" <a class=\"button\" href=\""+request.getContextPath()+"/chat/listrooms.jsp\">List of Rooms</a>");
                    }
                    %> </TD>
            </TR>
        </TABLE>
    </CENTER>
</DIV>